import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()
class newUrlBean {
  int resultCode;
  Record record;
  String msg;

  newUrlBean({this.resultCode, this.record, this.msg});

  newUrlBean.fromJson(Map<String, dynamic> json) {
    resultCode = json['resultCode'];
    record =
        json['record'] != null ? new Record.fromJson(json['record']) : null;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['resultCode'] = this.resultCode;
    if (this.record != null) {
      data['record'] = this.record.toJson();
    }
    data['msg'] = this.msg;
    return data;
  }
}

class Record {
  String codes;
  Null province;
  String city;
  String district;
  String parent;
  String trainingurl;
  String status;
  int createdate;
  String createperson;
  int updatedate;
  String updateperson;
  Null remark;

  Record(
      {this.codes,
      this.province,
      this.city,
      this.district,
      this.parent,
      this.trainingurl,
      this.status,
      this.createdate,
      this.createperson,
      this.updatedate,
      this.updateperson,
      this.remark});

  Record.fromJson(Map<String, dynamic> json) {
    codes = json['codes'];
    province = json['province'];
    city = json['city'];
    district = json['district'];
    parent = json['parent'];
    trainingurl = json['trainingurl'];
    status = json['status'];
    createdate = json['createdate'];
    createperson = json['createperson'];
    updatedate = json['updatedate'];
    updateperson = json['updateperson'];
    remark = json['remark'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['codes'] = this.codes;
    data['province'] = this.province;
    data['city'] = this.city;
    data['district'] = this.district;
    data['parent'] = this.parent;
    data['trainingurl'] = this.trainingurl;
    data['status'] = this.status;
    data['createdate'] = this.createdate;
    data['createperson'] = this.createperson;
    data['updatedate'] = this.updatedate;
    data['updateperson'] = this.updateperson;
    data['remark'] = this.remark;
    return data;
  }
}
